package com.lifa.controller;

import com.lifa.dao.ChuKuMxTableDao;
import com.lifa.entity.Chukumxtable;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/ck")
@Scope("prototype")
public class ChuKuMxTableController {

    @Autowired
    private ChuKuMxTableDao chuKuMxTableDao;

    @RequestMapping("/chukutianjia")
    @ResponseBody
    public int chukutianjia(Chukumxtable chuKuMxTable){
        return chuKuMxTableDao.ChuKutianjia(chuKuMxTable);
    }

}
